import QtQuick 1.0
import "js/G.js" as G

Text {
    id:textLogout
    width: parent.width / 4
    height: 50
    text: "Logout"
    color: "lightgray"
    font { bold: true; family: "Helvetica"; pixelSize:18 }
    horizontalAlignment: "AlignHCenter"
    opacity: 0
    MouseArea {
        id: mouseRegion
        anchors.fill: parent
        onClicked: logoutWorker.sendMessage({'g': G.g});
    }
    states: [
        State {
            name: "Pressed"
            when: mouseRegion.pressed == true
            PropertyChanges { target: textLogout; opacity: 0.5 }
        }
    ]
}
